#ifndef LOGINPAGE_H
#define LOGINPAGE_H

#include <QWidget>
#include <QVBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QMessageBox>
#include <QRegularExpression>

class LoginPage : public QWidget
{
    Q_OBJECT
public:
    explicit LoginPage(QWidget *parent = nullptr);

private:
    QLineEdit *accountEdit;
    QLineEdit *passwordEdit;

private slots:
    void handleLogin();

signals:
    void loginAttempted(const QString &account, const QString &password);
    void goToRegister();
};

#endif // LOGINPAGE_H
